<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        img {
            width: 200px;
            height: 200px;
        }

        span {
            padding: 20px;
        }

        li {
            margin-bottom: 20px;
        }
    </style>
</head>

<body>
    <h1>结算</h1>
    <ul>

    </ul>

    <script>
        var all = JSON.parse(localStorage.getItem('all'))

        all.forEach(item => {
            document.querySelector('ul').innerHTML += `
            <li>
                <img src="${item.img}">
                <span>商品：${item.name}</span>
                <span>价格：${item.price}</span>
            </li>`
        })
    </script>
</body>

</html>